package com.hb.util;

import java.util.UUID;

/**
 * @description: 生成32位的uuid
 * @projectName: zhb-frame-build
 * @author: zhouhaizhi
 * @createTime: 2021/8/13 10:55
 * @version:1.0
 */
public class UUIDUtils {

    public static String getUUID() {
        return UUID.randomUUID().toString().replace("-", "");
    }

    public static void main(String[] args) {
        System.out.println("格式前的UUID ： " + UUID.randomUUID().toString());
        System.out.println("格式化后的UUID ：" + getUUID());
    }
}
